<template>
    <div class="pjb">
        <header>
            <Pjzi v-for="(v,i) in arr" :key="i" 
            :user="v.user"
            :ptext="v.ptext"
            :image="v.image"
            :font="v.font"
            :timer="v.timer"/>
        </header>
    </div>
</template>

<script>
import Pjzi from "@/components/ddgHD/pjzi.vue"
import {getlink} from "@/api/getapi.js"
export default {
    components:{
        Pjzi
    },
     data(){
        return {
             arr:[]
        }
    },
    created(){
        getlink("/data/ddg").then((ok)=>{
            this.arr=ok.data.pingjia.slice(0,2)
            console.log(ok.data.pingjia.slice(0,2))
        })
    }
}
</script>

<style scoped>
    .pjb{
        font-size: 0.12rem;
    }
</style>